package com.com.knowledgepaymentmanagementsystem.service.marketing.impl;

import com.com.knowledgepaymentmanagementsystem.mapper.marketing.LimitMapper;
import com.com.knowledgepaymentmanagementsystem.pojo.marketing.Limit;
import com.com.knowledgepaymentmanagementsystem.service.marketing.LimitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张攀
 * @version 1.0
 * @description: TODO
 * @date 2025/9/23 上午11:10
 */
@Service
public class LimitServiceImpl implements LimitService {
    @Autowired
    private LimitMapper limitMapper;

    @Override
    public List<Limit> getLimit(Limit limit) {
        return limitMapper.getLimit(limit);
    }

    @Override
    public Object insertLimit(Limit limit) {
        return limitMapper.insert(limit);
    }

    @Override
    public void updateLimit(Limit limit) {
        limitMapper.updateById(limit);
    }

    @Override
    public void deleteLimit(Integer id) {
        limitMapper.deleteById(id);
    }
}
